package com.lihongman.entity;

public class Message {

	private String id;
	private String time;
	private String source;
	private int renshu;
	private float money;
	private float danjia;
	private String company_id;
	private String daoyou_id;
	private Company company;
	private Daoyou daoyou;
	
	public String getCompany_id() {
		return company_id;
	}
	public void setCompany_id(String company_id) {
		this.company_id = company_id;
	}
	public String getDaoyou_id() {
		return daoyou_id;
	}
	public void setDaoyou_id(String daoyou_id) {
		this.daoyou_id = daoyou_id;
	}
	public Company getCompany() {
		return company;
	}
	public void setCompany(Company company) {
		this.company = company;
	}
	public Daoyou getDaoyou() {
		return daoyou;
	}
	public void setDaoyou(Daoyou daoyou) {
		this.daoyou = daoyou;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public int getRenshu() {
		return renshu;
	}
	public void setRenshu(int renshu) {
		this.renshu = renshu;
	}
	public float getMoney() {
		return money;
	}
	public void setMoney(float money) {
		this.money = money;
	}
	public float getDanjia() {
		return danjia;
	}
	public void setDanjia(float danjia) {
		if(money > 0 && renshu > 0){
			danjia = money / renshu;
		}
		this.danjia = danjia;
	}
	}
	

